package com.legal.aid.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.aid.common.annotation.Excel;
import com.legal.aid.common.core.domain.BaseEntity;

/**
 * 轮播广告管理对象 z_ad
 * 
 * @author ruoyi
 * @date 2025-05-28
 */
public class Advertisement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 广告标题 */
    @Excel(name = "广告标题")
    private String adTitle;

    /** 广告链接地址 */
    @Excel(name = "广告链接地址")
    private String link;

    /** 广告宣传图片 */
    @Excel(name = "广告宣传图片")
    private String imageUrl;

    /** 广告位置：0则是首页 1是关于我们 2是服务单位 */
    @Excel(name = "广告位置：0则是首页 1是关于我们 2是服务单位")
    private String position;

    /** 活动内容 */
    @Excel(name = "活动内容")
    private String content;

    /** 广告开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "广告开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 广告结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "广告结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 是否启用（0正常 1停用） */
    @Excel(name = "是否启用", readConverterExp = "0=正常,1=停用")
    private String isEnabled;

    /** 状态（0未通过 1通过 2审核中） */
    @Excel(name = "状态", readConverterExp = "0=未通过,1=通过,2=审核中")
    private String adStatus;

    /** 是否删除(0否1是) */
    private String isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAdTitle(String adTitle) 
    {
        this.adTitle = adTitle;
    }

    public String getAdTitle() 
    {
        return adTitle;
    }

    public void setLink(String link) 
    {
        this.link = link;
    }

    public String getLink() 
    {
        return link;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setIsEnabled(String isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled() 
    {
        return isEnabled;
    }

    public void setAdStatus(String adStatus) 
    {
        this.adStatus = adStatus;
    }

    public String getAdStatus() 
    {
        return adStatus;
    }

    public void setIsDeleted(String isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("adTitle", getAdTitle())
            .append("link", getLink())
            .append("imageUrl", getImageUrl())
            .append("position", getPosition())
            .append("content", getContent())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("isEnabled", getIsEnabled())
            .append("adStatus", getAdStatus())
            .append("isDeleted", getIsDeleted())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
